<?php
error_reporting(0);
$isadmin=1; 
include_once '../comm/config.php';
include_once 'check.php';
//请不要随意修改代码，凡是随意修改代码造成的一切后果均由修改者本人承担，多多不再提供技术支持	
$shopcj=$_POST['shopcj']; 
$startlevel=$_POST['startlevel']; 
$endlevel=$_POST['endlevel']; 
if($startlevel>$endlevel){
	$temp=$startlevel;
	$startlevel=$endlevel;
	$endlevel=$temp;
}

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {die(ERR_DB);}
mysql_select_db($dbname);
mysql_query("set names utf8");
$q = "update ".$BIAOTOU."websetting set shopcj='".$shopcj."',shopcj_slevel='".$startlevel."',shopcj_elevel='".$endlevel."'";
mysql_query($q);

mysql_close($link);
echo "<script language=javascript>alert('店铺采集设置更新成功！即将跳转到基本信息设置...');window.location='shopset.php'</script>";
?>